Skip to content

feat: add CI/CD status integration to wt status#84

Merged
timvw merged 2 commits into
mainfrom
feat/ci-status
Mar 27, 2026
Merged

feat: add CI/CD status integration to wt status#84
timvw merged 2 commits into
mainfrom
feat/ci-status

Conversation

@timvw
Copy link
Copy Markdown
Owner

@timvw timvw commented Mar 26, 2026

Summary

  • Add --ci flag to wt status to show CI/CD pipeline status per branch
  • Uses gh CLI for GitHub repos (commit status API + check runs API)
  • Uses glab CLI for GitLab repos (pipeline status)
  • Color-coded indicators: ✓ pass (green), ✗ fail (red), ● pending (yellow)
  • Opt-in flag to avoid network latency on default status command
  • Included in JSON output as ci field when present
  • Unit tests for all normalization functions and formatting

Test plan

  • wt status works as before (no CI column without --ci)
  • wt status --ci shows CI status for branches with pipelines
  • wt status --ci --format json includes ci field in JSON output
  • Gracefully handles missing gh/glab CLI (no error, no CI column)
  • Gracefully handles branches without CI pipelines

Show pipeline status (pass/fail/pending) per branch in the status
dashboard. Uses gh CLI for GitHub repos and glab CLI for GitLab.
Displays colored indicators: ✓ (pass), ✗ (fail), ● (pending).

Opt-in via --ci flag to avoid slowing down the default status command
with network calls.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 43.85965% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.16%. Comparing base (cf2a562) to head (b9ac9ad).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
status.go 43.36% 63 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   28.53%   29.16%   +0.62%     
==========================================
  Files          26       26              
  Lines        2600     2712     +112     
==========================================
+ Hits          742      791      +49     
- Misses       1780     1841      +61     
- Partials       78       80       +2     
Files with missing lines Coverage Δ
main.go 70.11% <100.00%> (+0.34%) ⬆️
status.go 46.03% <43.36%> (-4.51%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The commit status API returns "pending" when there are no statuses,
which is the common case for repos using GitHub Actions (which uses
check runs instead). Check the check runs API first and only fall
back to commit status for older CI integrations.
@timvw timvw enabled auto-merge (squash) March 27, 2026 06:43
@timvw timvw merged commit 823b0f2 into main Mar 27, 2026
11 checks passed
@timvw timvw deleted the feat/ci-status branch March 27, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant